package com.gs.gulishopp.gulishoppcoupon.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @ClassName: ConfigData
 * @author: create by leiyijie
 * @date:2021/3/25 15:04
 */

@Component
@RefreshScope
@Data
public class ConfigData {
    @Value("${coupon.user.name}")
    private String name;
    @Value("${coupon.user.age}")
    private Integer age;

}



